<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/common/topBegin.jsp"%>
</head>
<body>
 <div  id="table_form_div" class="table_form1">
 <input type="hidden" id="subBtn"   />
 <input type="hidden" id="backTip"  value="操作成功" />
  <table class="table-form" width="100%">
   <tbody>
      <tr>
	       <td width="15%" class="table-th">应急预案编号</td>
	       <td class="table-td" width="35%">${entity.emergencyId }  </td>
	       <td width="15%" class="table-th">应急预案名称</td>
	       <td class="table-td" width="35%">${entity.emergencyName}</td>
	  </tr>
	  <tr>
	  	   <td width="15%" class="table-th">危险品名称</td>
	       <td class="table-td" width="35%">${entity.dangerGoodsName}</td>
	       <td width="15%" class="table-th">危险品类型</td>
	       <td class="table-td" width="35%">
       			<c:if test="${entity.dangerLevel eq 1 }">一类危险品</c:if>
       			<c:if test="${entity.dangerLevel eq 2 }">二类危险品</c:if>
       			<c:if test="${entity.dangerLevel eq 3 }">三类危险品</c:if>
       			<c:if test="${entity.dangerLevel eq 4 }">四类危险品</c:if>
       			<c:if test="${entity.dangerLevel eq 5 }">五类危险品</c:if>
	       </td>
	  </tr>
	   <tr>
	       <td width="15%" class="table-th">预案日期</td>
           <td class="table-td" colspan="3">
				<span id="sp_emergencyTime" ></span>
                <fmt:formatDate value="${entity.emergencyTime}" pattern="yyyy-MM-dd"/>           		
           </td>
           
      </tr>
      <tr>
           <td  width="15%" class="table-th">应急预案方案</td>
		   <td class="table-td" colspan="3">${entity.emergencyPlan } </td>     
      </tr>
      <tr>
            <td  width="10%" class="table-th">
		  	<input type="button" id="btn_upload" value="上传附件" onclick="emergencyForm.openAttachWin();"/>
		  </td>
         <td colspan="5"><div id="attach_div">
         	<c:if test="${not empty entity.attachName}">
         		<c:set var="files" value="${fn:split(entity.attachName,',')}"/>
         		<c:forEach var="item" items="${files }">
         			<c:set var="itemFile" value="${fn:substring(item,(fn:indexOf(item,'/')+1),fn:length(item))}"/>
        			<span id="sp_${preItemFile}" style="padding-left:8px;padding-right:5px;">${itemFile }</span>
         		</c:forEach>
         	</c:if>
         </div>
        </td>     
      </tr>
	 </tbody>
  </table>
   <input type="hidden" id="id"  name="id" value="${entity.id}" />
   <input type="file"  id="attachFile" name="file" style="display:none" />
   <input type="hidden" id="hid_filePath" name="attachName" value="${entity.attachName }"/>
  </form>
  </div>
  <script type="text/javascript" src="${ctx}/js/app-web/biz/emergency/emergencyForm.js"></script>
  </body>
  </html>
  